/**
 * @description: 复制链接
 * @Author: wukai
 * @since: 2023-01-29 14:48:12
 * @return {*}
 */
import { message } from 'ant-design-vue';
export default function (url: string, title: string) {
  const input = document.createElement('input');
  input.value = `${title}\n
预览链接：${url}`;
  document.body.appendChild(input);
  input.select();
  document.execCommand('Copy');
  document.body.removeChild(input);
  message.success('复制成功');
     
}